/**
 * 游戏配置常量
 * @description 集中管理游戏的所有配置参数
 */
export const GAME_CONFIG = {
    // 车辆配置
    VEHICLE: {
        WIDTH: 40,
        HEIGHT: 60,
        MAX_SPEED: 200,
        ACCELERATION: 2,
        DECELERATION: 1,
        TURN_SPEED: 3,
        FRICTION: 0.5
    },

    // 赛道配置
    ROAD: {
        WIDTH: 300,
        SEGMENT_LENGTH: 200,
        TOTAL_SEGMENTS: 1000
    },

    // 障碍物配置
    OBSTACLES: {
        WIDTH: 30,
        HEIGHT: 30,
        MAX_COUNT: 20,
        BASE_COUNT: 5,
        SPIKE_RATIO: 0.3
    },

    // 道具配置
    POWER_UPS: {
        WIDTH: 20,
        HEIGHT: 20,
        MAX_COUNT: 8,
        BASE_COUNT: 2,
        SPEED_BOOST: 20
    },

    // 粒子效果配置
    PARTICLES: {
        DEFAULT_COUNT: 10,
        LIFE_DECAY: 0.02,
        MAX_SPEED: 10
    },

    // 游戏状态配置
    GAME: {
        INITIAL_SCORE: 0,
        INITIAL_LEVEL: 1,
        LEVEL_DISTANCE: 1000,
        POWER_UP_SCORE: 50
    },

    // 颜色配置
    COLORS: {
        PLAYER: '#e74c3c',
        WINDOW: '#3498db',
        WHEEL: '#2c3e50',
        ROAD: '#2c3e50',
        BACKGROUND: '#34495e',
        SPIKE: '#e74c3c',
        ROCK: '#95a5a6',
        SPEED_POWER_UP: '#f1c40f',
        SHIELD_POWER_UP: '#9b59b6',
        PARTICLE_DEFAULT: '#666',
        PARTICLE_SPEED: '#f1c40f',
        PARTICLE_SHIELD: '#9b59b6'
    }
}; 